<template>
  <div class="app-container">
    <CurrentState :options="stateOption" :current="currentState"/>
    <Detail pageType="details"/>
    <el-row justify="center">
        <el-button plain type="primary" icon="Back" @click="backPage">返回</el-button>
    </el-row>
  </div>
</template>
  
<script setup>
import Detail from './Detail.vue'
const router = useRouter()
const { proxy: vm } = getCurrentInstance()

// 当前状态
const stateOption = [{label: '草稿', value: 1}, {label: '立项审批', value: 2}, {label: '项目跟进', value: 3}, {label: '完成', value: 3}]
const currentState = ref(2)

const backPage = () => {
  vm.$tab.closeOpenPage()
  router.back()
};
</script>

<style lang="scss" scoped>

</style>